﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="login.aspx.cs" Inherits="YULI.Web.admin.login" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
    <title><%=config.webname%>-管理员登录</title>
    <link href="css/shop.css" type="text/css" rel="stylesheet" />
    <link href="skin/default/skin.css" rel="stylesheet" type="text/css" id="skin" />
    <link href="/css/Sellerber.css" type="text/css" rel="stylesheet" />
    <link href="css/bkg_ui.css" type="text/css" rel="stylesheet" />
    <link href="font/css/font-awesome.min.css" rel="stylesheet" type="text/css" />
    <script src="/scripts/jquery/jquery-1.9.1.min.js" type="text/javascript"></script>
    <script src="/scripts/layer/layer.js" type="text/javascript"></script>
    <script src="/scripts/jquery/bootstrap.min.js" type="text/javascript"></script>
    <script src="/scripts/jquery/Sellerber.js" type="text/javascript"></script>
    <script src="js/shopFrame.js" type="text/javascript"></script>
    <script type="text/javascript" src="/scripts/jquery/jquery.cookie.js"></script>
    <script type="text/javascript" src="js/common/login-validate.js"></script>
    <script type="text/javascript" src="js/common/function.js"></script>
    <script type="text/javascript">
        $(function () {
            //检测IE
            if ('undefined' == typeof (document.body.style.maxHeight)) {
                window.location.href = 'ie6update.html';
            }
        });
    </script>
</head>
<body class="login-layout Reg_log_style">
    <div class="logintop">
        <span>欢迎后台管理界面平台</span>
        <ul>
            <li><a href="#">返回首页</a></li>
            <li><a href="#">帮助</a></li>
            <li><a href="#">关于</a></li>
        </ul>
    </div>
    <div class="loginbody">
        <div class="login-container">
            <div class="center">
                <img src="images/logo.png" />
            </div>
            <div class="space-6"></div>
            <div class="position-relative">
                <div id="login-box" class="login-box widget-box no-border visible">
                    <div class="login-main">
                        <div class="clearfix">
                            <div class="login_icon">
                                <img src="images/login_img.png" />
                            </div>
                            <form id="loginform" name="loginform" style="width: 300px; float: right; margin-right: 50px;" url="/tools/admin_ajax.ashx?action=admin_login">
                                <h4 class="title_name">
                                    <img src="images/login_title.png" /></h4>
                                <fieldset>
                                    <ul>
                                        <li class="frame_style form_error">
                                            <label class="user_icon"></label>
                                            <input id="txtUserName" name="txtUserName" type="text" data-name="用户名" value="<%=YULI.Common.Utils.GetCookie("YULIRememberName") %>" /><i>用户名</i></li>
                                        <li class="frame_style form_error">
                                            <label class="password_icon"></label>
                                            <input id="txtPassword" name="txtPassword" type="password" data-name="密码" /><i>密码</i></li>
                                        <li class="frame_style form_error">
                                            <label class="Codes_icon"></label>
                                            <input id="txtCode" name="txtCode" type="text" data-name="验证码" /><i>验证码</i><div class="Codes_region">
                                                <img src="/tools/verify_code.ashx" width="100%" height="38px" alt="点击切换验证码" title="点击切换验证码" style="cursor: pointer;" onclick="ToggleCode(this, '/tools/verify_code.ashx');return false;" />
                                            </div>
                                        </li>
                                    </ul>
                                    <div class="space"></div>
                                    <div class="clearfix">
                                        <label class="inline">
                                            <%--<input type="checkbox" class="ace">--%>
                                            <span class="lbl" id="msgtips">请输入用户名和密码</span>
                                        </label>

                                        <button type="button" class="login_btn" id="btnSubmit" name="btnSubmit">登&nbsp;陆 </button>
                                    </div>

                                    <div class="space-4"></div>
                                </fieldset>
                            </form>
                        </div>
                        <div class="social-or-login center">
                            <span class="bigger-110">通知</span>
                        </div>

                        <div class="social-login ">
                            为了更好的体验性，本网站系统不再对IE8（含IE8）以下浏览器支持，请见谅。
                        </div>
                    </div>
                    <!-- /login-main -->
                    <!-- /widget-body -->
                </div>
                <!-- /login-box -->
            </div>
            <!-- /position-relative -->
        </div>
    </div>
    <div class="loginbm"><%=config.webcopyright%></div>
    <strong></strong>
</body>
</html>
<script type="text/javascript">
    $(document).ready(function () {
        $("input[type='text'],input[type='password']").blur(function () {
            var $el = $(this);
            var $parent = $el.parent();
            $parent.attr('class', 'frame_style').removeClass(' form_error');
            if ($el.val() == '') {
                $parent.attr('class', 'frame_style').addClass(' form_error');
            }
        });
        $("input[type='text'],input[type='password']").focus(function () {
            var $el = $(this);
            var $parent = $el.parent();
            $parent.attr('class', 'frame_style').removeClass(' form_errors');
            if ($el.val() == '') {
                $parent.attr('class', 'frame_style').addClass(' form_errors');
            } else {
                $parent.attr('class', 'frame_style').removeClass(' form_errors');
            }
        });
    })
</script>
